//
//  OMTUserViewController.m
//  OMTUIKit_Example
//
//  Created by 昭荣伊 on 2018/7/30.
//  Copyright © 2018 昭荣伊. All rights reserved.
//

#import "OMTUserViewController.h"

@interface OMTUserViewController ()

@end

@implementation OMTUserViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)refresh {
    NSLog(@"refresh");
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [self.tableView.mj_header endRefreshing];
    });
}

- (void)fetchMore {
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [self.tableView.mj_footer endRefreshing];
    });
}

@end
